<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the clipRRect method from the Canvas class, for the Dart programming language.">
  <title>clipRRect method - Canvas class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">shake</a></li>
    <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
    <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
    <li class="self-crumb">clipRRect method</li>
  </ol>
  <div class="self-name">clipRRect</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">shake</a></li>
      <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
      <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
      <li class="self-crumb">clipRRect method</li>
    </ol>
    
    <h5>Canvas class</h5>
    <ol>
      <li class="section-title"><a href="dart-ui/Canvas-class.html#constructors">Constructors</a></li>
      <li><a href="dart-ui/Canvas/Canvas.html">Canvas</a></li>
    
      <li class="section-title inherited">
        <a href="dart-ui/Canvas-class.html#instance-properties">Properties</a>
      </li>
      <li class="inherited"><a href="dart-core/Object/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="dart-ui/Canvas-class.html#instance-methods">Methods</a></li>
      <li><a href="dart-ui/Canvas/clipPath.html">clipPath</a></li>
      <li><a href="dart-ui/Canvas/clipRect.html">clipRect</a></li>
      <li><a href="dart-ui/Canvas/clipRRect.html">clipRRect</a></li>
      <li><a href="dart-ui/Canvas/drawArc.html">drawArc</a></li>
      <li><a href="dart-ui/Canvas/drawAtlas.html">drawAtlas</a></li>
      <li><a href="dart-ui/Canvas/drawCircle.html">drawCircle</a></li>
      <li><a href="dart-ui/Canvas/drawColor.html">drawColor</a></li>
      <li><a href="dart-ui/Canvas/drawDRRect.html">drawDRRect</a></li>
      <li><a href="dart-ui/Canvas/drawImage.html">drawImage</a></li>
      <li><a href="dart-ui/Canvas/drawImageNine.html">drawImageNine</a></li>
      <li><a href="dart-ui/Canvas/drawImageRect.html">drawImageRect</a></li>
      <li><a href="dart-ui/Canvas/drawLine.html">drawLine</a></li>
      <li><a href="dart-ui/Canvas/drawOval.html">drawOval</a></li>
      <li><a href="dart-ui/Canvas/drawPaint.html">drawPaint</a></li>
      <li><a href="dart-ui/Canvas/drawParagraph.html">drawParagraph</a></li>
      <li><a href="dart-ui/Canvas/drawPath.html">drawPath</a></li>
      <li><a href="dart-ui/Canvas/drawPicture.html">drawPicture</a></li>
      <li><a href="dart-ui/Canvas/drawPoints.html">drawPoints</a></li>
      <li><a href="dart-ui/Canvas/drawRawAtlas.html">drawRawAtlas</a></li>
      <li><a href="dart-ui/Canvas/drawRawPoints.html">drawRawPoints</a></li>
      <li><a href="dart-ui/Canvas/drawRect.html">drawRect</a></li>
      <li><a href="dart-ui/Canvas/drawRRect.html">drawRRect</a></li>
      <li><a href="dart-ui/Canvas/drawShadow.html">drawShadow</a></li>
      <li><a href="dart-ui/Canvas/drawVertices.html">drawVertices</a></li>
      <li><a href="dart-ui/Canvas/getSaveCount.html">getSaveCount</a></li>
      <li><a href="dart-ui/Canvas/restore.html">restore</a></li>
      <li><a href="dart-ui/Canvas/rotate.html">rotate</a></li>
      <li><a href="dart-ui/Canvas/save.html">save</a></li>
      <li><a href="dart-ui/Canvas/saveLayer.html">saveLayer</a></li>
      <li><a href="dart-ui/Canvas/scale.html">scale</a></li>
      <li><a href="dart-ui/Canvas/skew.html">skew</a></li>
      <li><a href="dart-ui/Canvas/transform.html">transform</a></li>
      <li><a href="dart-ui/Canvas/translate.html">translate</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="dart-core/Object/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="dart-ui/Canvas-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="dart-core/Object/operator_equals.html">operator ==</a></li>
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1>clipRRect method</h1></div>

    <section class="multi-line-signature">
      <span class="returntype">void</span>
            <span class="name ">clipRRect</span>
(<wbr><span class="parameter" id="clipRRect-param-rrect"><span class="type-annotation"><a href="dart-ui/RRect-class.html">RRect</a></span> <span class="parameter-name">rrect</span>, {</span> <span class="parameter" id="clipRRect-param-doAntiAlias"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">doAntiAlias</span>: <span class="default-value">true</span></span> })
      
    </section>
    <section class="desc markdown">
      <p>Reduces the clip region to the intersection of the current clip and the
given rounded rectangle.</p>
<p>If <code>doAntiAlias</code> is true, then the clip will be anti-aliased.</p>
<p>If multiple draw commands intersect with the clip boundary, this can result
in incorrect blending at the clip boundary. See <a href="dart-ui/Canvas/saveLayer.html">saveLayer</a> for a
discussion of how to address that and some examples of using <a href="dart-ui/Canvas/clipRRect.html">clipRRect</a>.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">void clipRRect(RRect rrect, {bool doAntiAlias = true}) {
  assert(_rrectIsValid(rrect));
  assert(doAntiAlias != null);
  _clipRRect(rrect._value, doAntiAlias);
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    shake 0.1.0
  </span>

  
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
